package cn.wei.sdd.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
//@ToString
public enum CashPaymentStatusEnum {

//   是否线下现金支付（0：否，1：是）
    NOT_cashPayment(0, "系统支付"),
    IS_cashPayment(1, "现金支付");

    private Integer status;
    private String msg;

    public static String getMsgByStatus(int status) {
        CashPaymentStatusEnum arrObj[] = CashPaymentStatusEnum.values();
        for (CashPaymentStatusEnum obj : arrObj) {
            if (status == obj.getStatus().intValue()) {
                return obj.getMsg();
            }
        }
        return "";
    }
}

